# a="*"
# b=" "

# for i in range(1*3):



#     for i in range(1*3):
#         print(b,a)

"""
           *
          * *
         * * *
        * * * *
       * * * * *
      * * * * * *
     * * * * * * *
    * * * * * * * *
   * * * * * * * * * 
  * * * * * * * * * * 
 * * * * * * * * * * *
* * * * * * * * * * * *

print("     *")
print("    * *")
print("   * * *")
print("  * * * *")
print("* * * * * *")
print("====================================")

"""
# myList=["           *","          * *","         * * *","        * * * *","       * * * * *","      * * * * * *",",""    * * * * * * * *"]

# feishu= int(input("请输入1——10:"))

# if feishu == 1:
#     for i in range(1):
#         for c in range(1):
#             print(myList[i])
# if feishu == 2:
#     for i in range(2):
#         for c in range(1):
#             print(myList[i])
# if feishu == 3:
#     for i in range(3):
#         for c in range(1):
#             print(myList[i])
# if feishu == 4:
#     for i in range(4):
#         for c in range(1):
#             print(myList[i])
# if feishu == 5:
#     for i in range(5):
#         for c in range(1):
#             print(myList[i])
# if feishu == 6:
#     for i in range(6):
#         for c in range(1):
#             print(myList[i])
# if feishu == 7:
#     for i in range(7):
#         for c in range(1):
#             print(myList[i])
# if feishu == 8:
#     for i in range(8):
#         for c in range(1):
#             print(myList[i])
# if feishu == 9:
#     for i in range(9):
#         for c in range(1):
#             print(myList[i])
# if feishu == 10:
#     for i in range(10):
#         for c in range(1):
#             print(myList[i])

# -----------------------------------------------------

feishu= int(input("请输入:"))

for j in range(feishu):
    for i in range(feishu-j-1):
        print(" ",end="")
    for i in range(1+j):
        if i==0 or i==j or j == feishu-1:
            print("* " ,end="")
        else:
            print("  " ,end="")
    print("")


# ------------------------------------------

    












# for i in range(4):
#     print(" " ,end="")
# for i in range(2):
#     print("* ",end="")
# print("")





# for i in range(3):
#     print(" " ,end="")
# for i in range(3):
#     print("* ",end="")
# print("")




# for i in range(2):
#     print(" " ,end="")
# for i in range(4):
#     print("* ",end="")
# print("")




# for i in range(1):
#     print(" " ,end="")
# for i in range(5):
#     print("* ",end="")
# print("")




# for i in range(6):
#     print("* ",end="")




# feishu= int(input("请输入1——10:"))

# for j in range(feishu):
#     for i in range(feishu):
#         print("* ",end="")
#     print("")
#     if i== 0 :
        
#     else:
        

